home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ccdl150l.zip
/
ALLOC
/
STRDUP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-03-10
|
180b
|
13 lines
/*
* strdup.c
*/
#include <stdlib.h>
#include <string.h>
char *strdup(const char *string)
{
char *rv = malloc(strlen(string)+1);
strcpy(rv,string);
return rv;
}